Skip to content

Fix unaddressed review findings: bib, examples, wall-column validator and finalize, NVHPC probe - #2405

Merged
sbryngelson merged 1 commit into
MFlowCode:masterfrom
sbryngelson:review-fixes
Nov 23, 2026
Merged

sbryngelson merged 1 commit into
MFlowCode:masterfrom
sbryngelson:review-fixes

Conversation

@sbryngelson

Copy link
Copy Markdown
Member

Contribution Policy

All contributions are expected to demonstrate:

  • A clear understanding of the codebase
  • Alignment with product direction
  • Thoughtful reasoning behind changes
  • Evidence of real-world usage or hands-on experience with the problem

If these expectations are not met, we would prefer to implement the changes ourselves rather than spend time reviewing low-effort submissions.

Summary

Fixes review findings from Claude Code Review on recently merged PRs that were not addressed before merge.

  • docs/references.bib: Maw1976 lacked its closing brace (every entry now brace-balanced).
  • examples/2D_thermal_channel/check_nu.py, examples/2D_ibm_cylinder_drag_nu/check_cylinder.py: np.trapezoid fell back to np.trapz for NumPy < 2; fields() exits with a clear message when there are no silo saves; check_nu.py checks that each q_cons_vf*.dat is exactly one Fortran record (4-byte markers) of the given --dtype before reading with offset=4.
  • examples/2D_ibm_cylinder_drag_nu: case.py docstring said --tstar 200 for Re 100 where the README and validation page use 120; the --cfl help now says it applies to the fixed step only (the adaptive step uses cfl_target); the Re 40 Nu error against Lange is -1.2 % (3.243/3.281 - 1 = -1.16 %), fixed in the README and validation_cyl_drag_nu.md. No case output changes.
  • Wall column (IBM: opt-in sub-grid wall conduction column for isothermal walls (patch_ib%wall_column) #2329 follow-ups): the validator turned wall_column_dt_frac = 0 into 0.1 via or 0.1 and accepted it; it now rejects values outside (0, 1] (unit test added). s_finalize_ibm_module resets n_wc and wc_ready so a second setup in one process re-initializes the columns (wc_slot is already freed at the end of setup, before the early return can matter). With cfl_const_dt the limit is evaluated once at step 0 from the initial column estimate and stays in the constant dt: this is conservative, not wrong, so it is documented in case.md rather than prohibited.
  • toolchain/mfc/test/test.py (Test: skip 124D7972 on NVHPC < 25.11 GPU builds (known difference, #2181) #2380): when FC --version names no known compiler (a wrapper such as mpifort or ftn), the NVHPC known-difference probe falls back to nvfortran --version; unit cases added.

Not changed: the GPU_UPDATE in s_mpi_initialize (pre_process and post_process are not built with OpenACC/OpenMP, so the macro expands to nothing there) and the weno_Re_flux_compact golden (tests/D3CF92B5 exists on master).

Fixes: none

Type of change

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Other: describe

Testing

  • ./mfc.sh precheck and ./mfc.sh lint (984 toolchain tests) pass.
  • ./mfc.sh test --only 48CC6F65 DF9526DB (both Wall Column cases) pass on a CPU build (GNU, Tuolumne), exercising the m_ibm.fpp change.
  • Changed example scripts parse; brace balance of every references.bib entry checked with a script.

Checklist

  • I added or updated tests for new behavior
  • I updated documentation if user-facing behavior changed

This PR was made with Claude Code (AI).

@sbryngelson
sbryngelson requested a review from a team as a code owner November 22, 2026 12:56
@sbryngelson
sbryngelson requested review from danieljvickers and removed request for a team November 22, 2026 12:56
@github-actions

Copy link
Copy Markdown

Lines of Code

File Lines Diff
src/simulation/m_ibm.fpp 4271 +2
Directory Lines Diff
simulation 41867 +2
total 61942 +2

@github-actions

Copy link
Copy Markdown

Claude Code Review

Head SHA: 3639520

Files changed:

  • 12
  • docs/documentation/case.md
  • docs/documentation/validation_cyl_drag_nu.md
  • docs/references.bib
  • examples/2D_ibm_cylinder_drag_nu/README.md
  • examples/2D_ibm_cylinder_drag_nu/case.py
  • examples/2D_ibm_cylinder_drag_nu/check_cylinder.py
  • examples/2D_thermal_channel/check_nu.py
  • src/simulation/m_ibm.fpp
  • toolchain/mfc/case_validator.py
  • toolchain/mfc/test/test.py

Findings:
No issues found. Checked in step 4: toolchain/mfc/test/test.py, examples/2D_ibm_cylinder_drag_nu/check_cylinder.py, examples/2D_thermal_channel/check_nu.py, docs/references.bib (the m_ibm.fpp and case_validator.py hunks were reviewed from the diff only, with no context file available). Low-confidence note: removing or 0.1 in case_validator.py would raise a TypeError if the parameter were present with value None, but I could not confirm that from the prepared inputs.

@codecov

codecov Bot commented Nov 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.14%. Comparing base (398733e) to head (3639520).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2405   +/-   ##
=======================================
  Coverage   66.14%   66.14%           
=======================================
  Files         112      112           
  Lines       31093    31095    +2     
  Branches     4749     4749           
=======================================
+ Hits        20567    20569    +2     
  Misses       6675     6675           
  Partials     3851     3851           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sbryngelson
sbryngelson merged commit 11fba1b into MFlowCode:master Nov 23, 2026
51 of 59 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant